﻿using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Generic.App.HttpApi.Host.Filter
{
    public class SwaggerOperationFilter : IOperationFilter
    {
        private static readonly string[] IgnoreSchema = { "Volo.Abp" };

        void IOperationFilter.Apply(OpenApiOperation operation, OperationFilterContext context)
        {
            //Remove Default Response Examples
            operation.Responses.RemoveAll(r => true);
        }
    }
}
